/**
 * IBatisService.java : [com.raccoon.ibatis.config] Created on 2009. 4. 13.
 *
 * Copyright (c) 2009 Raccoon Project Team.
 * Seoul, Korea
 * All rights reserved.
 *
 */
package com.raccoon.ibatis.config;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.raccoon.ibatis.bean.MemberExBean;

/**
 * @author KimJungSu
 * @version
 *
 */
public class IBatisService {

	private static IBatisService 	instance;
	private static IBatisManager	manager;
	
	private IBatisService() {
		// TODO
		manager = new IBatisManager();
	}

	public static IBatisService getInstance() {
		if(instance == null) {
			instance = new IBatisService();
		}
		return instance;
	}

	public Map selectMemberAll(HashMap param) throws Exception {
		return manager.selectMemberAll(param);
	}

	public MemberExBean selectMemberWithUserKey(int key) throws SQLException {
		return (MemberExBean) manager.selectMemberWithUserKey(key);
	}

	public List selectMemberWithLike(String str) throws SQLException {
		return manager.selectMemberWithLike(str);
	}
}
